<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>


<div class='roundedbox'>

	${post.title} 
	<hr/>
	
 				${post.body} 
 		<hr />
		 submitted by: ${post.user.displayName} &nbsp;&nbsp;&nbsp;Modified on: ${post.createdTimeStamp}
			
</div>
	
<br/><br/>


		
<c:forEach var="child" items="${childpost}">
<div class='roundedbox'>
${child.body}
<hr />
submitted by ${child.user.displayName} &nbsp;&nbsp;&nbsp;Modified on: ${child.updatedTimeStamp}
</div>
<br/>

</c:forEach>

<form:form method="POST"  commandName="childpostbean" action="submitnewchildpost.do">

 <input type="hidden" value="${post.postId}" name="postId" />  
<div class="addnewpost"></div>
Detailed contents:
<form:textarea path="body" rows="20" cols="150" />
<br/><br/> 
<input type="submit" value="Submit" />

</div>


</form:form>

